package logic

import (
	"context"

	"gitee.com/gopher2011/go-zero-rpc-demo/internal/svc"
	"gitee.com/gopher2011/go-zero-rpc-demo/user"

	"github.com/tal-tech/go-zero/core/logx"
)

type Ping struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewPing(ctx context.Context, svcCtx *svc.ServiceContext) *Ping {
	return &Ping{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *Ping) Ping(in *user.Request) (*user.Response, error) {

	return &user.Response{}, nil
}
